package com.tianji.learning.controller;


import com.tianji.learning.domain.po.PointsBoardSeason;
import com.tianji.learning.service.IPointsBoardSeasonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 赛季信息表 前端控制器
 * </p>
 *
 * @author yangyu
 * @since 2023-07-29
 */
@RestController
@RequestMapping("/boards-season")
@RequiredArgsConstructor
@Api(tags = "赛季信息相关接口")
public class PointsBoardSeasonController {
    private final IPointsBoardSeasonService pointsBoardSeasonService;

    /**
     * 查询赛季信息列表
     * @return 赛季信息表
     */
    @GetMapping("list")
    @ApiOperation("查询赛季信息列表")
    public List<PointsBoardSeason> list(){
        return pointsBoardSeasonService.list();
    }
}
